// 获取 userToken
export function getUserToken() {
  return window.localStorage.getItem("ly-token");
}
// 获取 userToken
export function setUserToken(token) {
  window.localStorage.setItem("ly-token", token);
}
// 获取 userToken
export function removeUserToken() {
  window.localStorage.removeItem("ly-token");
}
// 获取用户信息
export function getUserInfo() {
  return JSON.parse(localStorage.getItem("lyUserInfo") || "{}");
}
export function setUserInfo(userInfo) {
  let lyUserInfo = JSON.stringify(userInfo || {});
  localStorage.setItem("lyUserInfo", lyUserInfo);
}
